package com.zch.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.CategoryMapper;
import com.zch.dao.model.Category;
import com.zch.dao.model.CategoryExample;

@Service
public class CategoryService {
	@Autowired
	private CategoryMapper categoryMapper;

	public int countByExample(CategoryExample example) {
		return this.categoryMapper.countByExample(example);
	}

	public Category selectByPrimaryKey(String id) {
		return this.categoryMapper.selectByPrimaryKey(id);
	}

	public List<Category> selectByExample(CategoryExample example) {
		return this.categoryMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.categoryMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Category record) {
		return this.categoryMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Category record) {
		return this.categoryMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(CategoryExample example) {
		return this.categoryMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Category record, CategoryExample example) {
		return this.categoryMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(Category record, CategoryExample example) {
		return this.categoryMapper.updateByExample(record, example);
	}

	public int insert(Category record) {
		return this.categoryMapper.insert(record);
	}

	public int insertSelective(Category record) {
		return this.categoryMapper.insertSelective(record);
	}

}
